package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class FindActivity extends AppCompatActivity {

    private ImageView main_bottom_01,
            main_bottom_02,
            main_bottom_03,
            main_bottom_04,
            main_bottom_05;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_find);
        //        绑定底部导航栏
        main_bottom_01 = findViewById(R.id.main_bottom_01);
        main_bottom_02 = findViewById(R.id.main_bottom_02);
        main_bottom_03 = findViewById(R.id.main_bottom_03);
        main_bottom_04 = findViewById(R.id.main_bottom_04);
        main_bottom_05 = findViewById(R.id.main_bottom_05);

//      导航底部绑定跳转事件
        main_bottom_01.setOnClickListener(view -> {
            Intent intent = new Intent(this, MainActivity.class);
            startActivity(intent);
        });
        main_bottom_02.setOnClickListener(view -> {
            Intent intent = new Intent(this, ChartIncomeActivity.class);
            startActivity(intent);
        });
        main_bottom_03.setOnClickListener(view -> {
            Intent intent = new Intent(this, addFragment.class);
            startActivity(intent);
        });
        main_bottom_05.setOnClickListener(view -> {
            Intent intent = new Intent(this, personalPage.class);
            startActivity(intent);
        });


    }

    public void jumpToAccountDetail(View view) {
//        点击账单跳转到账单详情页面
    }



    public void jumpToBudget(View view) {
//        点击图标进入修改预算页面
        Intent intent = new Intent(FindActivity.this, BudgetMonthActivity.class);
        startActivity(intent);
    }


}